<!DOCTYPE html>
<html lang="en">

<head>
 <meta charset="UTF-8">
 <meta name="viewport"
  content="width=device-width, initial-scale=1.0, minimum-scale=1,maximum-scale=1,user-scalable=no">
 <meta http-equiv="X-UA-Compatible" content="ie=edge">
 <title data-ch="恐龙探险" data-en="Dinosaur Adventure" class="document_title">恐龙探险</title>
 <script src="js/jquery-3.3.1.min.js"></script>
 <script src="js/common.js"></script>
 <script src="js/layer.js"></script>
 <script src="js/rem.js"></script>
 <script type="text/javascript">
  isLogin();
 </script>
 <link rel="stylesheet" href="css/common.css">
 <link rel="stylesheet" href="css/index.css">
</head>

<body>
 <!--头部-->
 <div class=" jui_top_bar">
  <a class="jui_top_left" href="javascript:history.back(-1)"><img src="icons/back.png"></a>
  <div class="jui_top_middle font_weight" data-ch="捕猎记录" data-en="Hunting record">捕猎记录</div>
 </div>
 <!-- 头部end -->
 <!-- 内容部分 -->
 <div class="bulie_jilu_box jui_main padding_032">
  

  <!-- 内容为空时显示 -->
  
 </div>

 <script>
  $(function(){
   var language_type = localStorage.getItem("language_type");
   var data = {
    uid: localStorage.getItem("u_id"),
    token: localStorage.getItem("token"),
    language_type: language_type
   }
   $.ajax({
    type: 'post',
    url: baseURL + '/index.php?m=user&c=hunt_list',
    data: data,
    success: function success(data){
     data = JSON.parse(data);
	 is_login(data);
     var details_list = '';
     if(data.data.length == 0){
      details_list = `<div class="if_null">
       <img class="if_null_img" src="./icons/nothing.png" alt="">
       <div class="if_null_text col_000 f30" data-ch="暂无内容" data-en="No data">暂无内容</div>
      </div>`
     } else {
      data.data.forEach(function(item){
       console.log(item)
       details_list += `<div class="bulie_jilu_list border_radius03 col_fff border-radius03 latout_mask jui_flex_row_center">
        <img class="bulie_list_left" src="${item.d_img}" alt="">
        <div class="bulie_list_center jui_flex1">
         <div class="bulie_list_center_text">
          <span class="col_fff" data-ch="恐龙种类: " data-en="Dino type: ">恐龙种类: </span class="col_fff">
          <span>${item.d_name}</span>
         </div>
         <div class="bulie_list_center_text">
          <span class="col_fff" data-ch="捕猎日期: " data-en="Hunt date: ">捕猎日期: </span class="col_fff">
          <span>${item.d_s_date}</span>
         </div>
         <div class="bulie_list_center_text">
          <span class="col_fff" data-ch="捕猎时间: " data-en="Hunting time: ">捕猎时间: </span class="col_fff">
          <span>${item.d_s_time}</span>
         </div>
         <div class="bulie_list_center_text">
          <span class="col_fff" data-ch="配对日期: " data-en="Matching date: ">配对日期: </span class="col_fff">
          <span>${item.d_p_date}</span>
         </div>
         <div class="bulie_list_center_text">
          <span class="col_fff" data-ch="配对时间: " data-en="Matching time: ">配对时间: </span class="col_fff">
          <span>${item.d_p_time}</span>
         </div>
        </div>
        <div class="bulie_list_right col_fff">${item.d_status_info}</div>
       </div>`
      })
      
     }
     $(".bulie_jilu_box").html(details_list);
     language()
    }
   })


   language();
   documentName()
  })
  
 </script>
</body>

</html>